package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.dto.EmpDto;
import com.jiyun.entity.Emp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-02-27
 */
public interface EmpMapper extends BaseMapper<Emp> {

    Page<EmpDto> findPage(Page<EmpDto> empDtoPage, @Param("emp") EmpDto empDto);


    @Select("select max(worknum) from emp")
    String findMaxIdData();
}
